<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>统一认证中心</title>

    <#import "common/common.macro.ftl" as netCommon>
    <@netCommon.commonStyle />

</head>
<body class="hold-transition login-page">

<div class="login-box">
    <div class="login-logo">
        <a><b>XU</b>SSO</a>
    </div>
    <form action="${request.contextPath}/doLogin" method="post" onsubmit="return checkInput()">
        <div class="login-box-body">
            <p class="login-box-msg">统一认证中心</p>
            <div id="usernameDiv" class="form-group has-feedback">
                <input id="username" type="text" name="username" class="form-control" placeholder="username..." value="" maxlength="50" >
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
                <span id="usernameMsg" class="help-block"></span>
            </div>
            <div id="passwordDiv" class="form-group has-feedback">
                <input id="password" type="password" name="password" class="form-control" placeholder="password..." value="" maxlength="50" >
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                <span id="passwordMsg" class="help-block"></span>
            </div>

                <#if errMsg?exists>
                    <p style="color: red;">${errMsg}</p>
                </#if>

            <div class="row">
                <div class="col-md-6">
                    <input id="appId" type="hidden" name="appId" value="${appId!''}" />
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                </div>
                <div class="col-md-3 left-pill">
                    <button id="toRegister" type="button" class="btn btn-primary btn-block btn-flat">注册</button>
                </div>
                <div class="col-md-3 left-pill">
                    <button id="toReset" type="button" class="btn btn-warning btn-block btn-flat">重置</button>
                </div>
            </div>
        </div>
    </form>
</div>

</body>
<@netCommon.commonScript />
<script src="${request.contextPath}/static/js/login.1.js"></script>
</html>